package com.usercar.mapper;

import com.usercar.pojo.Content;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-08-11
 */
public interface ContentMapper extends BaseMapper<Content> {

    List<Content> selectByFieldAndTime(@Param("field") Long field, @Param("startTime") Date startTime,@Param("endTime") Date endTime);

    Content selectByTime(Date time);

    void updateByout_trade_no(String out_trade_no);
}
